//
//  GroupView.h
//  MHO
//
//  Created by papo on 4/12/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GroupView;
@class Group;

@protocol GroupViewDelegate <NSObject>

@optional
- (void)groupView:(GroupView*)view clickAtIndex:(NSIndexPath*)indexPath;

@end

@interface GroupView : UIView

@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *groupName;
@property (weak, nonatomic) IBOutlet UILabel *numberGamesLb;
@property (weak, nonatomic) IBOutlet UILabel *numberViewsLb;
@property (strong) NSIndexPath*   indexPath;
@property (weak) id<GroupViewDelegate> delegate;
@property (weak, nonatomic) Group* group;
@property (weak, nonatomic) NSString* groupId;

+ (GroupView*)viewFromNib;
@end
